<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg bgystz">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content bgys">
        <form class="form-horizontal m" id="form-discount-edit" th:object="${discount}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<input id="pointId" name="pointId" th:field="*{pointId}"  type="hidden">
			<input id="basicsId" name="basicsId" th:field="*{basicsId}"  type="hidden">
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">计量点名称：</label>
				<div class="col-sm-8">
					<input id="pointName" name="pointName" th:field="*{pointName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计量点ID：</label>
				<div class="col-sm-8">
					<input id="pointId" name="pointId" th:field="*{pointId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">录入基础ID：</label>
				<div class="col-sm-8">
					<input id="basicsId" name="basicsId" th:field="*{basicsId}" class="form-control" type="text">
				</div>
			</div>-->
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">电度电费：</label>
					<div class="col-sm-8">
						<input id="eleAccount" name="eleAccount" th:field="*{eleAccount}" class="form-control srk"
							   type="number" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">基本电费：</label>
					<div class="col-sm-8">
						<input id="basicsAccount" name="basicsAccount" th:field="*{basicsAccount}" class="form-control srk"
							   type="number" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">政府性基金及附加：</label>
					<div class="col-sm-8">
						<input id="zzJJ" name="zzJJ" th:field="*{zzJJ}" class="form-control srk" type="number" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<label class="col-sm-4 control-label bgys">合计：</label>
					<div class="col-sm-8">
						<input id="total" name="total" th:field="*{total}" class="form-control srk" type="number" readonly="true">
					</div>
				</div>
			</div>
			<div class="col-md-3">

			</div>
			<div class="col-md-3">

			</div>
			<div class="col-md-3">

			</div>
			<div class="col-md-3">
				<a class="btn btn-success" onclick="submitHandler()">
					<i class="fa fa-hand-peace-o"></i> 刷新
				</a>
			</div>


		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "service/discount"
		$("#form-discount-edit").validate({
			rules:{
                eleAccount:{
					required:true,
				},
                basicsAccount:{
                    required:true,
                },
                zzJJ:{
                    required:true,
                },
                total:{
                    required:true,
                },
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
                window.location.reload();
	        }
	    }
	</script>
</body>
</html>
